﻿using System;
class Counter
{
    static void Main(string[] args)
    {
        Console.Write("请输入第一个数字A：");
        int A = Convert.ToInt32(Console.ReadLine());

        Console.Write("请选择计算符号：(+、-、*、/)：");
        String B = Console.ReadLine();

        Console.Write("请输入第二个数字C：");
        int C = int.Parse(Console.ReadLine());

        int D;

        if (B == "+")
        {
            D = A + C;
            Console.WriteLine("输出结果为" + D);
        }

        else if (B == "-")
        {
            D = A - C;
            Console.WriteLine("输出结果为" + D);
        }

        else if (B == "*")
        {
            D = A * C;
            Console.WriteLine("输出结果为" + D);
        }

        else if (B == "/")
        {
            D = A / C;
            Console.WriteLine("输出结果为" + D);
        }




    }
}
